#!/usr/bin/make -f

include /usr/share/cdbs/1/class/ant.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk

JAVA_HOME              	:= /usr/lib/jvm/java-6-sun
DEB_ANT_BUILD_TARGET 	:= jar javadoc
DEB_JARS		:= asm2 asm2-xml asm2-util asm2-tree asm2-commons asm2-analysis asm2-attrs \
			   laf-widget laf-plugin swingx forms	

clean::
	$(RM) -r drop www/webstart

install/substance::
	for i in substance.jar substance-lite.jar substance-tst-lite.jar \
		substance-lite-feel.jar substance-tst.jar; \
	do \
		install -m 644 -D $$i $(DEB_DESTDIR)/usr/share/java/`basename $$i .jar`-$(DEB_UPSTREAM_VERSION).jar; \
		dh_link /usr/share/java/`basename $$i .jar`-$(DEB_UPSTREAM_VERSION).jar /usr/share/java/$$i; \
	done

get-orig-source:
	sh debian/orig-tar.sh $(DEB_UPSTREAM_VERSION)	
